package com.fastloan.mgt.application.approve.service;

import com.fastloan.mgt.application.approve.expection.ApproveException;
import com.fastloan.mgt.product.approve.model.ProductApprove;
import com.kawins.base.BaseService;
import com.fastloan.mgt.application.approve.model.ApplicationApproveTemplate;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author admins
 *         createTime 2017/11/09
 */
public interface ApplicationApproveTemplateService extends BaseService<ApplicationApproveTemplate> {

    /**
     * 初始化审批模板
     *
     * @param processId
     * @return
     */
    void initialize(String processId) throws ApproveException;

    /**
     * 根据模板id查询审批用户id
     *
     * @param templateId
     * @return
     */
    List<String> queryApproveUserIdByTemplateId(@Param("templateId") String templateId);

}
